﻿<script>
function validate(form)
{
	var mota = form.txtphan_quyen.value;
	if(mota=="")
	{
		inlineMsg('txtphan_quyen','Chưa nhập quyền.',2);
		return false;
	}
	return true;
}
</script>
<?php
mysql_query("SET character_set_results=utf8");
$ms_quyen=$_POST['ms_quyen'];//lay ten_dn tu hidden frmDLsua trong tat_ca_thanh_vien.php
$rs=mysql_query("SELECT * FROM quyen WHERE MS_QUYEN='$ms_quyen'");
$rw=mysql_fetch_array($rs);
$phan_quyen=$rw['MO_TA'];
?>
<div class="table"><h2><span>Cập Nhật Quyền</span></h2></div><br />
<form name="frmsua" action="quyen/luu_sua_quyen.php" method="post" class="form" onsubmit="return validate(this)" enctype="multipart/form-data">
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150"><label><strong>Mã quyền</strong></label> </td>
    <td><?php  echo $ms_quyen ?><input type="hidden" name="ms_quyen" value="<?php echo $ms_quyen ?>"/></td>
  </tr>
  
  <tr>
    <td><label><strong>Mô tả(*)</strong></label></td>
    <td><input name="txtphan_quyen" id="txtphan_quyen" size="75" type="text" value="<?php echo $phan_quyen ?>"/></td>
  </tr>
<tr>
	<td></td>
    <td >
        <input type="submit" name="submit" id="submit" value="Cập nhật" class="button"/>
      	<input type="button" name="back" id="back" value="Trở về" onClick="location.href='index.php?noidung=dsq';" class="button"/>
      </td>
  </tr>
</table>
</form>
